package cn.edu.ujn.liuklab3.dao;

import cn.edu.ujn.liuklab3.entity.Category;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Pageable;
import java.util.List;
@Mapper
public interface CategoryDao {

    Category queryById(Integer cateId);

    List<Category> queryAllByLimit(Category category, @Param("pageable") Pageable pageable);

    long count(Category category);

    int insert(Category category);

    int insertBatch(@Param("entities") List<Category> entities);

    int insertOrUpdateBatch(@Param("entities") List<Category> entities);

    int update(Category category);

    int deleteById(Integer cateId);

    List<Category> selectAll(Category category);

    Integer selectCount();

    List<Category> findAll();
}

